import java.util.Arrays;

public class Text1 {
    public static void main(String[] args) {

        int[][]arr=new int [][]{{1, 2, 3}, {2, 3, 4}};
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]);
            }
            System.out.println();
        }

    }
    public static void main9(String[] args) {
        int [] arr1= new int[]{1,5,3,7,6,23,2};
        System.out.println(Arrays.binarySearch(arr1, 5));
//        Arrays.fill(arr1,2,4,99);
//        String ret=Arrays.toString(arr1);
//        System.out.println(ret);
    }
    public static void main7(String[] args) {
        int [] arr1= new int[]{1,5,3,7,6,23,2};
        int [] arr3= new int[]{1,5,3,7,6,23,2};
        int [] arr2= new int[]{2,5,3,9,6,4,7};
        System.out.println(Arrays.equals(arr1, arr2));
        System.out.println(Arrays.equals(arr1, arr3));
    }
    public static void main4(String[] args) {
        int [] arr= new int[]{1,5,3,7,6,23,2};

        //System.out.println(Arrays.binarySearch(arr,3));
        int []arr2=Arrays.copyOf(arr,arr.length);
        int []arr3=Arrays.copyOf(arr,arr.length*2);
        int []arr4=Arrays.copyOfRange(arr,1,4);
        String ret=Arrays.toString(arr4);
        System.out.println(ret);
        //String ret1=Arrays.toString(arr3);

        //System.out.println(ret1);

//        Arrays.sort(arr,2,6);
//
//        String ret=Arrays.toString(arr);
//        System.out.println(ret);
    }
    public static int[]func(int [] array){
        int []tmp=new int[array.length];
        for (int i = 0; i < array.length; i++) {
            tmp[i]=array[i]*2;
        }return tmp;
    }
    public static void main5(String[] args) {

            int[]array={1,2,3,4};
            int[]retArray=func(array);
            String ret=Arrays.toString(retArray);
            System.out.println(ret);

    }
    public static void main2(String[] args) {
        int [] arr2= new int[]{1,2,3,4};
        for (int i = 0; i < arr2.length; i++) {
            System.out.print(arr2[i]+" ");

        }
        System.out.println();
        System.out.println("============");
        for(int x :arr2){
            System.out.print(x+" ");
        }
        System.out.println("============");
        String ret=Arrays.toString(arr2);
        System.out.println(ret);
    }
    public static void main1(String[] args) {
        int[] arr = {1,2,3,4,5,6};
        String newArr = Arrays.toString(arr);
        int [] arr1= new int[10];
        int [] arr2= new int[]{1,2,3,4};
        int [] arr3= {1,2,3,4};
        System.out.println(arr2);
        System.out.println(arr2[2]);


    }
}
